package com.dashang.view.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * Action 基类
 *
 * @author 陈兴
 * @version [版本号, 2011-8-22]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@SuppressWarnings("unused")
class BaseAction extends ActionSupport implements ServletRequestAware, ServletResponseAware
{
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 5644019803353875769L;

    protected HttpServletRequest request;

    protected HttpServletResponse response;

    public void setServletRequest(HttpServletRequest request)
    {
        this.request = request;
    }

    public void setServletResponse(HttpServletResponse response)
    {
        this.response = response;
    }

}
